import { defineConfig } from 'vite'
import { resolve } from "path"; // 导入 path 模块，帮助我们解析路径
import react from '@vitejs/plugin-react'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [react()],
  resolve:{
    alias:[
      {
        find:"@",
        replacement: resolve(__dirname, "src"),
      },
      {
        find:"assets",
        replacement: resolve(__dirname, "src/assets"),
      }
    ]
  },
  server:{
    port:9999,
    host:"0.0.0.0"
  }
})
